package org.liushengpei.com.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 队列监听
 */
@Component
public class MQListener {

    @RabbitListener(queues = "simple.queue")
    public void getMsgByMQ(String msg) {
        System.err.println(msg);
    }
}
